package cn.yunhe.biz;

import java.util.List;

import cn.yunhe.dao.NewsDao;

public class NewsBiz {

	NewsDao newsDao = new NewsDao();

	public String getNewsByTitle(String keyword) {
		List<String> titles = newsDao.queryNewsByTitle(keyword);
		String result = "";
		if (titles.size() > 0) {
			for (String title : titles) {
				result += title + ",";
			}
			return result.substring(0, result.length() - 1);
		}
		return null;
	}
}
